import 'package:flutter_nb_net/flutter_net.dart';

class VipServiceListResp extends BaseNetModel {
  int? code;
  String? msg;
  List<VipServiceData>? data;

  VipServiceListResp({this.code, this.msg, this.data});

  @override
  fromJson(Map<String, dynamic> json) {
    return VipServiceListResp(
      code: json['code'],
      msg: json['msg'],
      data: json['data'] != null
          ? List<VipServiceData>.from(
              json['data'].map((x) => VipServiceData().fromJson(x)))
          : null,
    );
  }
}

class VipServiceData extends BaseNetModel {
  num? packageId;
  num? type;
  String? title;
  String? subtitle;
  String? content;
  num? price;
  num? sort;
  num? number;
  num? status;
  int? unit;
  String? createBy;
  String? createTime;

  VipServiceData(
      {this.packageId,
      this.type,
      this.title,
      this.subtitle,
      this.price,
      this.content,
      this.sort,
      this.status,
      this.createBy,
      this.createTime,
      this.unit,
      this.number});

  @override
  fromJson(Map<String, dynamic> json) {
    return VipServiceData(
        packageId: json['packageId'],
        type: json['type'],
        title: json['title'],
        subtitle: json['subtitle'],
        price: json['price'],
        content: json['content'],
        sort: json['sort'],
        number: json['number'],
        unit: json['unit'],
        status: json['status'],
        createBy: json['createBy'],
        createTime: json['createTime']);
  }
}
